
<table>
    <tr>
        <th>No.</th>
        <th>Name</th>
        <th>Hersteller</th>
        <th>Preis EUR</th>
        <th>Preisklasse</th>
        <th>Rating</th>
    </tr>
    <?php
    $number = 1;
    foreach ($smartphones as $smartphone) :
        ?> 
        <tr>
            <td>
                <?php echo $number; ?>
            </td> 
            <td> 
                <?php echo anchor(base_url() . 'smartphone/details/' . $smartphone->id, $smartphone->name); ?>
            </td> 
            <td> 
                <?php echo $smartphone->manufacturer_name; ?>
            </td> 
            <td> 
                <?php echo $smartphone->price; ?>
            </td> 
            <td> 
                <?php echo $smartphone->category; ?>
            </td> 
            <td>
                <?php echo $smartphone->Rating; ?>
            </td>
        </tr>
        <?php
        $number++;
    endforeach;
    ?> 
</table>